this.BX=this.BX||{};(function(t){"use strict";var e=function(){function t(e){babelHelpers.classCallCheck(this,t);this.container=e.container;this.interval=e.interval;this.currentText=null}babelHelpers.createClass(t,[{key:"setInterval",value:function t(e){if(e)this.interval=e}},{key:"init",value:function t(e){var n=this;e=e.trim();this.currentText=this.container.innerText;var r=setInterval(function(){var t=parseInt(Math.random()*Math.max(e.length,n.currentText.length));var i=e[t];if(typeof i==="undefined")i=" ";while(n.currentText.length<t){n.currentText+=" "}n.currentText=(n.currentText.slice(0,t)+i+n.currentText.slice(t+1)).trim();n.container.innerText=n.currentText.length===0?"&nbsp;":n.currentText;if(e===n.container.innerText)clearInterval(r)},this.interval?this.interval:5)}}]);return t}();t.TextAnimate=e})(this.BX.UI=this.BX.UI||{});
//# sourceMappingURL=textanimate.bundle.map.js